package com.kusiri.kframework.metadata
{
	import com.kusiri.kframework.IKfContext;
	
	import flash.utils.describeType;
	import flash.utils.getDefinitionByName;
	
	public class KfComponentMetadataLocator
	{	
				
		protected static var _componentMetadata : Array = [];

		/**
		 * Get the metadata for a specific component
		 */
		public static function getComponentMetadata(clazz : String) : KfComponentMetadata
		{
			if (_componentMetadata[clazz] != null) return _componentMetadata[clazz];

			_componentMetadata[clazz] = new KfComponentMetadata(clazz);
			
			return _componentMetadata[clazz];
		}


	}
}